//
//  WHView.h
//  VoiceNavigation
//
//  Created by dengweihao on 15/7/3.
//  Copyright (c) 2015年 vcyber. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, ToastPosition) {
    ToastPositionDefault,
    ToastPositionTop,
    ToastPositionBottom,
    ToastPositionCenter,
};

@class WHLabel;

@interface WHView : UIView

@property (nonatomic, strong) WHLabel *myLabel;

+ (WHView *)viewWithFrame:(CGRect)frame image:(NSString *)image;

/** 返回一个自定义的view,view的大小根据文字动态调整 */
- (WHView *)initWithCenter:(CGPoint)center Text:(NSString *)text Font:(CGFloat)font color:(UIColor *)color;

/** 视图淡入淡出 */
- (void)fadeInAndOut;

+ (void)showHudMsgAtCenter:(NSString *)message;
+ (void)showHudMsg:(NSString *)message;
+ (void)showMessage:(NSString *)message inView:(UIView *)view;
+ (void)showMessage:(NSString *)message inView:(UIView *)view position:(id)point;

+ (void)showAlertwithTitle:(NSString *)title message:(NSString *)message okAction:(void (^)(UIAlertAction *action))okHandle cancelAction:(void (^)(UIAlertAction *action))cancleHandle;

+ (void)showAlertwithTitle:(NSString *)title message:(NSString *)message okTitle:(NSString *)okTitle okAction:(void (^)(UIAlertAction *action))okHandle cacelTitle:(NSString *)cancelTitle cancelAction:(void (^)(UIAlertAction *action))cancleHandle;

+ (void)showAlertwithTitle:(NSString *)title message:(NSString *)message;

+ (void)disMisAlert;

@end
